<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/templates/main.xhtml">

	<ui:define name="content">
		<h:form id="formNegotiationDetail">
			<h3>Negociación a pagar</h3>
			<br />
			<h:outputText value="#{negotiationDetailBean.currentDate}">
				<f:convertDateTime dateStyle="full" timeZone="es_CL" type="date" />
			</h:outputText>
			<p:panel header="N° pago #{negotiationDetailBean.negotiationDataDetails.paymentNumber}">
				<p:panelGrid columns="3">
					<h:outputLabel value="Nombre deudor" />
					<h:outputLabel value=":" />
					<h:outputLabel value="#{negotiationDetailBean.negotiationDataDetails.clientName}" />
					<h:outputLabel value="Rut" />
					<h:outputLabel value=":" />
					<h:outputLabel value="#{negotiationDetailBean.negotiationDataDetails.clientID}" >
						<f:converter converterId="rutConverter" />
					</h:outputLabel>
					<h:outputLabel value="Descripcion" />
					<h:outputLabel value=":" />
					<h:outputLabel value="#{negotiationDetailBean.negotiationDataDetails.description}" />

					<f:facet name="footer">
						<h:outputText value="Monto total: "/>
						<h:outputText value="#{negotiationDetailBean.negotiationDataDetails.amount}"> 
							<f:converter converterId="amountConverter" />
						</h:outputText>
					</f:facet>
				</p:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>

</ui:composition>